<!-- Begin: cppage - Financeiro -->
<div class="cppage financial">
    <div class="header">
        <h2>Financeiro</h2>
    </div>
    <div class="info">
        <div class="info-vehicles">
            <? if (CPanel::$account->type == 'J' and CPanel::$account->id_plan != NULL) {
                ?>
                <h3>Status - Veículos</h3>
                <div class="plan"><span class="title">Plano:</span><?= CPanel::$enterprises_status->p_name; ?></div>
                <div class="status"><span class="title">Status:</span><?= CPanel::$enterprises_status->s_name; ?></div>
                <div class="expired"><span class="title">Expiração:</span><?= (CPanel::$enterprises_status->expired == null) ? "Sem Transações" : date("d/m/Y", strtotime(CPanel::$enterprises_status->expired)); ?></div>
                <? if (CPanel::$enterprises_status->expired == null or ((CPanel::$enterprises_status->expired < date("Y-m-d")) and (CPanel::$enterprises_status->alertpay == 0) )) { ?>
                    <div class="payment">
                        <a href="javascript:;" class="pay-adc" title="Efetuar pagamento" rel="pay-ads" data="<?= CPanel::$enterprises_status->c_id ?>">Efetuar Pagamento</a>
                    </div>
                <? } else { ?>
                    <div class="status">
                        Não há nenhum pagamento.
                    </div>
                    <?
                }
            } else if(CPanel::$account->type == 'F') {
                ?>
                <h3>Veículos Vencidos</h3>
                <div class="vehicle-expired">
                    <?
                    if (CPanel::$alertpay->alertpay == 0 and CPanel::$customers_vehicles != NULL) {
                        foreach (CPanel::$customers_vehicles as $key => $vehicles_ad) {
                            ?>
                            <div class="plan">
                                <a href="javascript:;" class="pay-product" title="Efetuar pagamento" rel="pay-ads" data="<?= $vehicles_ad->id ?>">Efetuar Pagamento</a>
                            <?= $vehicles_ad->m_name ?></div>
                        <? }
                    } else { ?>
                        <div class="plan">Nenhum veículo vencido.</div>
                <? } ?>
                </div>
        <? } ?>
        </div>
        <?
        if (CPanel::$account->id_product_plan != NULL) {
            ?>
            <div class="info-products">
                <h3>Status - Produtos</h3>
                <div class="plan"><span class="title">Plano:</span><?= CPanel::$products_status->p_name; ?></div>
                <div class="status"><span class="title">Status:</span><?= CPanel::$products_status->s_name; ?></div>
                <div class="expired"><span class="title">Expiração:</span><?= (CPanel::$products_status->expired == null) ? "Sem Transações" : date("d/m/Y", strtotime(CPanel::$products_status->expired)); ?></div>
    <? if (CPanel::$products_status->expired == null or ((CPanel::$products_status->expired < date("Y-m-d")) and (CPanel::$products_status->alertpay == 0) )) { ?>
                    <div class="payment">
                        <a href="javascript:;" class="pay-product" title="Efetuar pagamento" rel="pay-product" data="<?= CPanel::$products_status->c_id ?>">Efetuar Pagamento</a>
                    </div>
    <? } else { ?>
                    <div class="payment">
                        Não há nenhum pagamento.
                    </div>
            <? }
            ?>
            </div>
<? } ?>
    </div>
</div> <!-- End -->